package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.BdmAgentGiftPackage;
import com.ruoyi.system.domain.dto.BdmAgentGiftPackageDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * 代理礼包商品关联Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-09
 */
public interface BdmAgentGiftPackageMapper {

    /**
     * 查询代理礼包商品关联列表
     *
     * @param bdmAgentGiftPackage 代理礼包商品关联
     * @return 代理礼包商品关联集合
     */
    public List<BdmAgentGiftPackageDto> selectBdmAgentGiftPackageList(BdmAgentGiftPackage bdmAgentGiftPackage);

    /**
     * 新增代理礼包商品关联
     *
     * @param bdmAgentGiftPackage 代理礼包商品关联
     * @return 结果
     */
    public int insertBdmAgentGiftPackage(BdmAgentGiftPackage bdmAgentGiftPackage);


    @Delete("delete from bdm_agent_gift_package where good_id = #{goodId}")
    int deleteBdmAgentGiftPackageByGooId(@Param("goodId") Long goodId);
}
